package com.atguigu.gmall.order.service;

import com.atguigu.gmall.order.entity.OrderInfo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 10574
* @description 针对表【order_info(订单表 订单表)】的数据库操作Service
* @createDate 2022-12-22 19:48:30
*/
public interface OrderInfoService extends IService<OrderInfo> {

    /**
     * 根据订单id查询订单
     * @param id
     * @param userId
     * @return
     */
    OrderInfo getOrderInfoByIdAndUserId(Long id, Long userId);

    /**
     * 我的订单
     * @param orderInfoPage
     * @return
     */
    Page<OrderInfo> pageList(Page<OrderInfo> orderInfoPage);
}
